# Include hook code here
#ActionController::Base.send(:include, OptionalPartialParameters)
#ActiveRecord::Base.send(:include, OptionalPartialParameters)
ActionView::Base.send(:include, OptionalPartialParameters)
#ActionView::Base.class_eval do    
#    def render_with_optionals(*args)
#      options = args.first
#      
#      if options[:partial] && options[:optionals]
#        options[:locals] ||= {}
#        options[:locals][:optionals] = options[:optionals]
#        options.delete[:optionals]
#      else
#        options[:locals][:optionals] = {}
#      end
#      render_without_optionals(*args)      
#    end  
#    alias_method_chain :render, :optionals
#end